<?php
include 'class/weapon.php';

//浅表复制
$weapon = new Weapon('张三', '冲锋枪', '机械瞄准器', '500');

$weapon2 = $weapon;
$weapon2->setSoldiername('李四');

$weapon->display();
$weapon2->display();

